#ifndef __SOCKETCLIENT_H__
#define __SOCKETCLIENT_H__

#include "Socket.h"
//#include "protocol.h"

/*
 * Client class
 */
class SocketClient : public Socket
{
    public:
        SocketClient() {}
        SocketClient(const std::string& host, socketType type, int port);
        virtual ~SocketClient();
        SocketClient &operator=(SocketClient &);
        bool isConnected();
        void receiveError(int, Socket*);

    private:
        friend class PodServerInterface;
        bool connected;
        int serverPort;
        hostent *hostInfo;
        sockaddr_in serverAddr;
        void serverDisconnected();
};

#endif
